<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class OrdersGood extends Model
{
    use SoftDeletes;
    protected $fillable = ['goods_num'];

    public function good_attr()
    {
        return $this->hasOne(GoodsAttribute::class, 'id','goods_attr_id');
    }
    public function good()
    {
        return $this->hasOne(Good::class, 'id','goods_id');
    }
    public function goods_attr()
    {
        return $this->hasOne(GoodsAttribute::class, 'id','goods_attr_id');
    }

}
